﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
using M3G;

/**
 * さてどうやってテストしたものか...
 */

namespace MyTestProject
{
    
    public class TestDynamicImage2D
    {
        [Fact]
        public void TestConstructor()
        {
            var img = new DynamicImage2D();

            Assert.Equal(null, img.Source);
        }

        [Fact]
        public void TestGetSource()
        {
            var img = new DynamicImage2D();
            var src = new Image2D(Image2D.RGBA, 16, 16);
            img.BindSource(src);

            Assert.Equal(src, img.Source);
        }



    }
}
